<?php
namespace app\index\controller;

use think\Db;
use think\Request;

class Index
{
    // 入口
    // http://localhost/examine/thinkphp5/public/index.php/index/Index/hello
    public function index()
    {
        return ['data'=>'欢迎来到api.vchao.top','code'=>1,'message'=>'操作完成'];
    }
    // 测试入口
    public function hello()
    {
        return ['data'=>'this is hello function','code'=>1,'message'=>'操作完成'];
    }
}
